<!--%import("../../../member/tpl/js/signup_check.js")-->
<!--%import("../../../member/tpl/js/krzip_search.js")-->
<!--%import("filter/signup.xml")-->

<!--// datepicker javascript plugin load -->
<!--%load_js_plugin("ui")-->
<!--%load_js_plugin("ui.datepicker")-->

<!--%import("js/member.js")-->
<!--%import("../../../member/skins/default/css/default.css")-->

<div id="memberModule">
    <h1>{$lang->cmd_signup}</h1>

    <form id="fo_insert_member" action="./" method="get" onsubmit="return procFilter(this, signup)">
        <!--@if(false)-->
        <h2>{$lang->member_default_info}</h2>
        <!--@end-->
        <div class="form-row">
            <span class="label">{$lang->user_id} <span class="require">*</span></span>
            <span class="field"><input type="text" name="user_id" id="user_id" value="" class="inputTypeText"/></span>
            <span class="hint">{$lang->about_user_id}</span>
        </div>
        <div class="form-row">
            <span class="label">{$lang->password} <span class="require">*</span></span>
            <span class="field"><input type="password" name="password1" value="" class="inputTypeText"/></span>
            <span class="hint">{$lang->about_password}</span>
        </div>
        <div class="form-row">
            <span class="label">{$lang->password2} <span class="require">*</span></span>
            <span class="field"><input type="password" name="password2" value="" class="inputTypeText"/></span>
        </div>
        <div class="form-row">
            <span class="label">{$lang->email_address} <span class="require">*</span></span>
            <span class="field"><input type="text" name="email_address" value="" class="inputTypeText"/></span>
            <span class="hint">{$lang->about_email_address}</span>
        </div>
    <!--@if($extend_form_list)-->
        <!--@if(false)-->
        <h2>{$lang->member_extend_info}</h2>
        <!--@end-->
        <!--@foreach($extend_form_list as $key => $val)-->
            <!--@if($val->is_active=='Y')-->
                <div class="form-row">
                    <div class="label">{htmlspecialchars($val->column_title)}
                    <!--@if($val->required=='Y')--><span class="require">*</span><!--@end-->
                    </div>
                <!--// 일반 text -->
                <!--@if($val->column_type == 'text')-->
                    <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

                <!--// 홈페이지 주소 -->
                <!--@elseif($val->column_type == 'homepage')-->
                    <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

                <!--// Email 주소 -->
                <!--@elseif($val->column_type == 'email_address')-->
                    <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" class="inputTypeText w400" />

                <!--// 전화번호 -->
                <!--@elseif($val->column_type == 'tel')-->
                    <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[0])}" size="4" class="inputTypeText" />
                    <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[1])}" size="4" class="inputTypeText" />
                    <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[2])}" size="4" class="inputTypeText" />

                <!--// textarea -->
                <!--@elseif($val->column_type == 'textarea')-->
                    <textarea name="{$val->column_name}" class="inputTypeTextArea w400">{htmlspecialchars($val->value)}</textarea>

                <!--// 다중 선택 -->
                <!--@elseif($val->column_type == 'checkbox')-->
                    <!--@if($val->default_value)-->
                        <ul class="checkbox">
                        <!--@foreach($val->default_value as $v)-->
                            <li><input type="checkbox" name="{$val->column_name}" value="{$v}" <!--@if(is_array($val->value)&&in_array($v, $val->value))-->checked="checked"<!--@end-->/>{$v}</li>
                        <!--@end-->
                        </ul>
                    <!--@end-->


                <!--@elseif($val->column_type == 'radio')-->
                    <!--@if($val->default_value)-->
                        <ul class="radio">
                        <!--@foreach($val->default_value as $v)-->
                            <li><input type="radio" name="{$val->column_name}" value="{$v}" <!--@if(is_array($val->value)&&in_array($v, $val->value))-->checked="checked"<!--@end-->/>{$v}</li>
                        <!--@end-->
                        </ul>
                    <!--@end-->

                <!--// 단일 선택 -->
                <!--@elseif($val->column_type == 'select')-->
                    <select name="{$val->column_name}">
                    <!--@if($val->default_value)-->
                        <!--@foreach($val->default_value as $v)-->
                            <option value="{$v}" <!--@if($v == $val->value)-->selected="selected"<!--@end-->>{$v}</option>
                        <!--@end-->
                    <!--@end-->
                    </select>

                <!--// 한국 주소 검색 -->
                <!--@elseif($val->column_type == 'kr_zip')-->
                    <div class="krZip">
                        <div id="zone_address_1_{$val->column_name}" style="display:<!--@if($val->value[0])-->inline<!--@else-->none<!--@end-->;">
                            <input type="text" name="{$val->column_name}" value="{$val->value[0]}" class="inputTypeText w400"/>
                            <a href="#" onclick="doHideKrZipList('{$val->column_name}'); return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
                        </div>
                        <div id="zone_address_list_{$val->column_name}" style="display:none">
                            <select name="_tmp_address_list_{$val->column_name}" class="w300"></select>
                            <a href="#" onclick="doSelectKrZip('{$val->column_name}'); return false;" class="button"><span>{$lang->cmd_select}</span></a>
                            <a href="#" onclick="doHideKrZipList('{$val->column_name}'); return false;" class="button"><span>{$lang->cmd_cancel}</span></a>
                        </div>
                        <div id="zone_address_search_{$val->column_name}" style="display:<!--@if($val->value[0])-->none<!--@else-->inline<!--@end-->;">
                            <input type="text" name="_tmp_address_search_{$val->column_name}" class="inputTypeText w400" value="" />
                            <a href="#" onclick="doSearchKrZip('{$val->column_name}'); return false;" class="button"><span>{$lang->cmd_search}</span></a>
                        </div>

                        <div class="address2">
                            <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value[1])}" class="inputTypeText w400" />
                        </div>
                    </div>

                <!--// 일본 주소 검색 -->
                <!--@elseif($val->column_type == 'jp_zip')-->
                    <input type="text" name="{$val->column_name}" value="{htmlspecialchars($val->value)}" />

                <!--// 날짜 입력 -->
                <!--@elseif($val->column_type == 'date')-->
                    <input type="hidden" name="{$val->column_name}" id="date_{$val->column_name}" value="{$val->value}" />
                    <input type="text" class="inputDate inputTypeText" value="{zdate($val->value,'Y-m-d')}" readonly="readonly" />
    				<span class="button"><input type="button" value="{$lang->cmd_delete}" class="dateRemover" /></span>
                <!--@end-->

                    <div class="hint">{$val->description}</div>
                </div>
            <!--@end-->
        <!--@end-->
    <!--@end-->
    
    <!--@if(!$is_logged && $member_config->agreement)-->
        <!--@if(false)-->
        <h2>{$lang->agreement}</h2>
        <!--@end-->
        <div class="agreementBox">
            {$member_config->agreement}
        </div>
        <div class="agreementButton">
            <input type="checkbox" name="accept_agreement" value="Y" id="accept_agree" />
            <label for="accept_agree">{$lang->about_accept_agreement}</label>
        </div>
    <!--@end-->    
    <div class="form-row">
        <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
    </div>
</form> 
</div>
<script type="text/javascript">
$LAB
.script(function(){
    document.getElementById('user_id').focus();
});
</script>